Arm backend: Remove no_target substring for pytests#18769
Arm backend: Remove no_target substring for pytests#18769martinlsm merged 2 commits intopytorch:mainfrom
Conversation
Pytest cases in the Arm backend no longer requires a no_target substring for test_arm_baremetal.sh to match and run them. Remove this identifier for all the tests. Signed-off-by: Martin Lindström <Martin.Lindstroem@arm.com> Change-Id: I21025dd4a2530d37ae88fc6dea88e7591488952e
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18769
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 5 Unrelated FailuresAs of commit 438b600 with merge base 137dedc ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot ciflow/trunk |
|
❌ 🤖 pytorchbot command failed: Try |
|
@pytorchbot label "partner: arm" |
|
@pytorchbot "release notes: none" |
|
❌ 🤖 pytorchbot command failed: Try |
There was a problem hiding this comment.
Pull request overview
This PR updates Arm backend pytest naming so tests no longer rely on a _no_target substring for test_arm_baremetal.sh’s non-target suite selection.
Changes:
- Renamed many Arm backend tests to remove the
_no_targetsuffix. - Kept target selection behavior driven by
pytest -ksubstrings (e.g.,tosa,u55,u85,_vgf_) unchanged. - Updated a copyright header year range in one test file.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| backends/arm/test/quantizer/test_partial_quantization.py | Rename quantizer tests to drop _no_target. |
| backends/arm/test/passes/test_size_adjust_input_pass.py | Rename size-adjust pass tests to drop _no_target. |
| backends/arm/test/passes/test_rewrite_le_lt_to_ge_gt_pass.py | Rename rewrite pass test to drop _no_target. |
| backends/arm/test/passes/test_replace_inf_values_pass.py | Rename ReplaceInf/LimitValues pass tests to drop _no_target. |
| backends/arm/test/passes/test_insert_dynamic_padding_pass.py | Rename dynamic padding test to drop _no_target. |
| backends/arm/test/passes/test_fuse_consecutive_concat_shapes.py | Rename concat-shapes fuse tests to drop _no_target. |
| backends/arm/test/passes/test_decompose_linear_pass.py | Rename linear decomposition test to drop _no_target. |
| backends/arm/test/passes/test_decompose_int16_activation_conv_pass.py | Rename int16-activation conv decomposition test to drop _no_target. |
| backends/arm/test/passes/test_decompose_einsum_pass.py | Rename einsum decomposition test to drop _no_target. |
| backends/arm/test/misc/test_tosa_spec.py | Rename TOSA spec unittest methods to drop _no_target. |
| backends/arm/test/misc/test_tosa_dialect_shape_ops.py | Rename TOSA dialect shape op tests to drop _no_target. |
| backends/arm/test/misc/test_shared_qspecs.py | Rename shared-qspec tests to drop _no_target. |
| backends/arm/test/misc/test_runner_utils.py | Rename runner utils test to drop _no_target. |
| backends/arm/test/misc/test_public_api_manifest.py | Rename public API manifest tests to drop _no_target. |
| backends/arm/test/misc/test_post_quant_device_switch.py | Rename post-quant device-switch test to drop _no_target. |
| backends/arm/test/misc/test_pass_pipeline_config.py | Rename one pass pipeline config test to drop _no_target. |
| backends/arm/test/misc/test_model_evaluator.py | Rename model evaluator unittest methods to drop _no_target. |
| backends/arm/test/misc/test_mixed_fp_bf16_partition.py | Rename mixed fp/bf16 partition tests to drop _no_target. |
| backends/arm/test/misc/test_debug_hook.py | Rename debug hook tests to drop _no_target and update copyright header. |
| backends/arm/test/misc/test_count_tosa_ops.py | Rename TOSA op counting tests to drop _no_target. |
| backends/arm/test/misc/test_const_shape.py | Rename const-shape test to drop _no_target. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| def test_pipeline_config_override_outside_compile_spec(): | ||
| compile_spec = TosaCompileSpec( | ||
| TosaSpecification.create_from_string("TOSA-1.00+INT") | ||
| ) |
There was a problem hiding this comment.
PR goal is to remove the no_target identifier from Arm backend pytests, but this file still defines test_softmax_config_masked_no_target and test_softmax_config_stable_no_target (lines 42 and 58). Please rename these remaining tests as well to keep naming consistent with the rest of the suite and the PR description.
| @pytest.mark.parametrize("case", _TEST_CASES, ids=[case.name for case in _TEST_CASES]) | ||
| def test_post_quant_device_switch_no_target(case: MetaRetraceCase) -> None: | ||
| def test_post_quant_device_switch(case: MetaRetraceCase) -> None: | ||
| """This test tests that moving a model to another device after quantiation |
There was a problem hiding this comment.
Typo in the updated docstring: "quantiation" should be "quantization".
| """This test tests that moving a model to another device after quantiation | |
| """This test tests that moving a model to another device after quantization |
|
@pytorchbot label ciflow/trunk |
|
@pytorchbot label "release notes: none" |
Pytest cases in the Arm backend no longer requires a no_target substring for test_arm_baremetal.sh to match and run them. Remove this identifier for all the tests.
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell